Fix hiding a Python block ending with a comment
authorkobarity <kobarity@gmail.com>
Sat, 25 May 2024 14:20:10 +0000 (23:20 +0900)
committerEli Zaretskii <eliz@gnu.org>
Sun, 9 Jun 2024 13:49:05 +0000 (16:49 +0300)
commit25ab3e7be8b1c71b5939682c5b5fe6810807bcc5
tree70ce6243f94e65dba808b0f986bd64114566a143
parent6cc23f4b2a5e7dd8c68f73a310e3c602804f855d
Fix hiding a Python block ending with a comment

* lisp/progmodes/python.el (python-hideshow-forward-sexp-function): Move
point to the end of the line.
* test/lisp/progmodes/python-tests.el (python-hideshow-hide-block-2):
New test.  (Bug#71170)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el